package com.mimikko.example;

import android.app.Activity;
import android.os.Bundle;

public class HideUIActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityUtils.transparentSystemUI(this);
        ActivityUtils.startImmersive(this);
    }

    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
        super.onWindowFocusChanged(hasFocus);
        if(hasFocus){
            ActivityUtils.startImmersive(this);
        }
    }
}
